package com.ark.cloud.java.persistence.service.impl;


import com.ark.cloud.java.persistence.entity.SpeedCmd;
import com.ark.cloud.java.persistence.mapper.SpeedCmdMapper;
import com.ark.cloud.java.persistence.service.SpeedCmdService;
import com.ark.cloud.java.persistence.utils.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/9/2  下午5:42
 * @description
 */
@Service
public class SpeedCmdServiceImpl implements SpeedCmdService {

    @Autowired
    SpeedCmdMapper speedCmdDao;

    @Override
    public void saveSpeedCmdInfo(SpeedCmd speedCmd) {

        // 设置UUID
        speedCmd.setId(UUIDUtil.next());
        System.out.println("speedCmd:"+speedCmd);
        speedCmdDao.saveSpeedCmdInfo(speedCmd);
    }
}
